package config

import "time"

type Elastic struct {
	Url                 string        `yaml:"url"`
	Sniff               bool          `yaml:"sniff"`
	HealthCheckInterval time.Duration `yaml:"healthCheckInterval"`
	ErrLog              string        `yaml:"errlog"`
	InfoLog             string        `yaml:"infolog"`
}

type Mysql struct {
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	Dbname   string `yaml:"dbname"`
}

type Redis struct {
	Addr     string `yaml:"addr"`
	Password string `yaml:"password"`
	Db       int    `yaml:"db"`
}
